package com.lb.exception;

import lombok.extern.slf4j.Slf4j;

/**
 * @author jzhang
 * @version 1.0
 * @date 2023-02-17 17:51
 */
@Slf4j
public class TryTest {
    public static void main(String[] args) {
        System.out.println(getName());
    }

    public static String getName() {
        try {
            int i = 9 / 0;
            return "1";
        } catch (Exception e) {
            log.info("info:{}",e.getMessage());
        }

        return "2";
    }
}
